package com.tengju.payment.application.shard;

public enum ApplicationExceptionCode {

    TRANSFER_NOT_EXIST("转账记录不存在, business_no:%s"),
    TRADE_STATUS_ERROR("交易状态不正确,业务类型%s,业务id%s,当前状态%s"),
    CHANNEL_NOT_FOUND("渠道不存在"),
    TRANSFER_CHANNEL_NOT_FOUND("转账渠道不存在"),
    UNION_TRANSFER_ERROR("转账记录发起异常"),


    DEP_ACCOUNT_NOT_OPEN("存管账户未开户成功"),
    DEP_ACCOUNT_OPEN_FAIL("开户失败"),
    DEP_BAND_CARD_NOT_BOUND("存管银行卡未绑定成功"),
    AUTHENTICATING_CARD_MORE_THAN_ONE("鉴权中的银行卡大于1张"),
    SIGN_NOT_SUCCESS("合作方式签约未完成，暂不支持绑卡！可点击合作方式查看详情"),
    CERTIFIED_NOT_SUPPORT("自认证用户不支持开立个人账户"),


    COMPANY_NOT_SUPPORT("对公账户用户暂不支持"),
    WHITE_LIST_NOT_HIT("未命中白名单"),
    WHITE_LIST_MEMBER_NOT_ALLOWED("白名单用户不允许线上打款"),
    CARD_NO_EMPTY("卡号不能为空"),

    ;

    private String message;

    ApplicationExceptionCode(String message) {
        this.message = message;
    }

    public String getMessage(Object... param) {
        return String.format(message, param);
    }
}